const {lastHistoryDate} = require('../db.js')

async function run() {
    let result = await lastHistoryDate({bondcode: '127034'})
    console.log(result instanceof Date)
    console.log(JSON.stringify(result, null, '  '))
    process.exit(0)
}

run().catch(err => {
    console.log(err)
    process.exit(1)
})
